package com.aidex.storage.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.pagehelper.PageInfo;
import com.aidex.common.core.domain.BaseEntity;
import com.aidex.common.core.service.BaseServiceImpl;
import com.aidex.storage.mapper.BusOutStorageMapper;
import com.aidex.storage.domain.BusOutStorage;
import com.aidex.storage.service.BusOutStorageService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 出库信息Service业务层处理
 * @author cq
 * @email 382425530@qq.com
 * @date 2023-06-20
 */
@Service
@Transactional(readOnly = true)
public class BusOutStorageServiceImpl extends BaseServiceImpl<BusOutStorageMapper, BusOutStorage> implements BusOutStorageService {

    private static final Logger log = LoggerFactory.getLogger(BusOutStorageServiceImpl.class);

    /**
     * 获取单条数据
     * @param busOutStorage 出库信息
     * @return 出库信息
     */
    @Override
    public BusOutStorage get(BusOutStorage busOutStorage) {
        BusOutStorage dto = super.get(busOutStorage);
        return dto;
    }

    /**
     * 获取单条数据
     * @param id 出库信息id
     * @return 出库信息
     */
    @Override
    public BusOutStorage get(String id) {
        BusOutStorage dto = super.get(id);
        return dto;
    }

    /**
     * 查询出库信息列表
     * @param busOutStorage 出库信息
     * @return 出库信息
     */
    @Override
    public List<BusOutStorage> findList(BusOutStorage busOutStorage) {
		List<BusOutStorage> busOutStorageList = super.findList(busOutStorage);
        return busOutStorageList;
    }

    /**
     * 分页查询出库信息列表
     * @param busOutStorage 出库信息
     * @return 出库信息
     */
    @Override
    public PageInfo<BusOutStorage> findPage(BusOutStorage busOutStorage) {
		PageInfo<BusOutStorage> page = super.findPage(busOutStorage);
        return page;
    }

    /**
     * 保存出库信息
     * @param busOutStorage
     * @return 结果
     */
    @Override
    public boolean save(BusOutStorage busOutStorage) {
        return super.save(busOutStorage);
    }

    /**
     * 删除出库信息信息
     * @param busOutStorage
     * @return 结果
     */
    @Override
    public boolean remove(BusOutStorage busOutStorage) {
        return super.remove(busOutStorage);
    }

    /**
     * 批量删除出库信息
     * @param ids 需要删除的出库信息ID
     * @return 结果
     */
    @Transactional(readOnly = false)
    @Override
    public int deleteBusOutStorageByIds(String[] ids) {
        return mapper.deleteBusOutStorageByIds(ids, BaseEntity.DEL_FLAG_DELETE);
    }

}
